<%@ page import="java.util.List" %>
<%@ page import="com.saishi.entity.Question" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Map" %><%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/6/29
  Time: 17:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>模糊查询</title>
    <style>
            span{
                color: green;
                margin-left: 0px;
            }
            .jrstl{
                width: 150px;
                height: 30px;
                background-color: orangered;
                text-align: center;
                line-height: 30px;
                margin-left:600px;
                margin-top: 10px;
            }
            #hui{
                background-color: lightyellow;
                width: 800px;
                height: 50px;
                padding-top: 10px;

            }
    </style>
</head>
<body>
<c:forEach items="${list}" var="k">
    <c:if test="${k.questiontype == '0'}">
        <input type="checkbox"><span>[单选题]&nbsp;</span>
        ${k.questionid}
        ${k.questionname}

        <br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A、<br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B、<br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C、<br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D、<br><br>
    </c:if>
    <c:if test="${k.questiontype == '1'}">
        <input type="checkbox"> <span>[多选题]&nbsp;</span>
        ${k.questionid}
        ${k.questionname}

        <br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A、<br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B、<br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;C、<br><br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D、<br><br>
    </c:if>
    <c:if test="${k.questiontype == '2'}">
        <input type="checkbox"> <span>[填空题]&nbsp;</span>
        ${k.questionid}
        ${k.questionname}
        <br><br>
        <br><br>
        <br><br>
    </c:if>


    <div id="hui">
        <div class="jrstl">
            <a href="/tkxt/listid?id=${k.questionid}">+加入试题篮</a>
        </div>
    </div>

</c:forEach>

</body>

</html>
